package com.government.article.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 文章对象 t_article
 * 
 * @author system
 * @date 2023-09-20
 */
@TableName("t_article")
@Data
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    @TableId(type = IdType.AUTO )
    private Long articleId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 分类id */
    @Excel(name = "分类id")
    private Long type;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 点击数 */
    @Excel(name = "点击数")
    private Long hits;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private BigDecimal score;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String ststus;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 附件数据 */
    @Excel(name = "附件数据")
    private String attachmentData;

    /**
     * 成果
     */
    @TableField(exist = false)
    private String workResult;

    /**
     * 是否删除 1是  0否
     */
    private String isDeleted;

    /**
     * 点赞数量
     */
    private int likeNum;

    /**
     * 收藏数量
     */
    private int collectNum;

    /**
     * 浏览数量
     */
    private int browseNum;


}
